﻿using System;
using UnityEngine;

namespace SaveDataStructures
{
	// Token: 0x02000356 RID: 854
	[Serializable]
	public class ParentData
	{
		// Token: 0x06001627 RID: 5671 RVA: 0x00090044 File Offset: 0x0008E244
		public ParentData(Transform t)
		{
			if (t == null)
			{
				return;
			}
			this.bone = t.name;
			EntityBase componentInParent = t.GetComponentInParent<EntityBase>();
			if (componentInParent != null)
			{
				this.id = componentInParent.id;
			}
		}

		// Token: 0x040018DC RID: 6364
		public int id = -1;

		// Token: 0x040018DD RID: 6365
		public string bone;
	}
}
